
import { getDict } from '@/utils'
import { transferLabelAndValue } from '@/utils/pre-sale'
export const rulesForm = [
  {
    'type': 'select', 'field': 'storeId', 'value': '',
    title: '申请门店:',
    props: {
      placeholder: '请选择申请门店'
    },
    col: {
      span: 8,
      labelWidth: '140px'
    },
    options: [],
    class: 'w-100',
    validate: [{ required: true, message: '请选择申请门店', trigger: ['blur', 'change'] }]
  },
  {
    'type': 'select', 'field': 'sourceStoreId', 'value': '',
    title: '来源门店:',
    props: {
      placeholder: '请选择来源门店'
    },
    col: {
      span: 8,
      labelWidth: '140px'
    },
    options: [],
    class: 'w-100',
    validate: [{ required: true, message: '请选择来源门店', trigger: ['blur', 'change'] }]
  },
  {
    'type': 'input', 'field': 'reason', 'value': '',
    title: '调拨原因:',
    props: {
      placeholder: '请输入调拨原因'
    },
    col: {

      span: 8,
      labelWidth: '140px'
    },
    class: 'w-100',
    validate: [{ required: true, message: '请输入调拨原因', trigger: ['blur', 'change'] }]

  },
  {
    'type': 'inputNumber', 'field': 'rate', 'value': 0,
    title: '税率:',
    props: {
      placeholder: '请输入税率',
      controlsPosition: 'right',
      min: 0,
      max: 100
    },
    col: {

      span: 8,
      labelWidth: '140px'
    },
    class: 'w-100'

  },
  {
    'type': 'radio', 'field': 'invoicing', 'value': false,
    title: '是否开票:',
    props: {
      placeholder: '状态'

    },
    col: {

      span: 8,
      labelWidth: '140px'
    },
    options: [{
      label: '是',
      value: true
    }, {
      label: '否',
      value: false
    }],
    class: 'w-100'

  },
  {
    'type': 'input', 'field': 'remark', 'value': '',
    title: '备注:',
    props: {
      placeholder: '备注',
      type: 'textarea',
      rows: 3
    },
    col: {
      span: 24,
      labelWidth: '140px'
    },
    class: 'w-100'
  }
]
